package com.antdesignbackend.backend.activiti.processlist.service.impl;


import com.antdesignbackend.backend.activiti.processlist.entity.entityVo.ProcessListVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.antdesignbackend.backend.activiti.processlist.mapper.ProcessListMapper;
import com.antdesignbackend.backend.activiti.processlist.entity.ProcessList;
import com.antdesignbackend.backend.activiti.processlist.service.ProcessListService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;


@Service
public class ProcessListServiceImpl extends ServiceImpl<ProcessListMapper, ProcessList> implements ProcessListService {

    @Autowired
    ProcessListMapper processListMapper;

    @Override
    public List<ProcessListVo> search(QueryWrapper<ProcessListVo> queryWrapper, Page<ProcessListVo> page) {
        return processListMapper.search(queryWrapper,page);
    }

    @Override
    public Integer count(QueryWrapper<ProcessListVo> queryWrapper) {
        return processListMapper.count(queryWrapper);
    }
}
